package com.bwda.dsrs.filecenter.domain.form.fileinfo;

import javax.validation.constraints.NotNull;
import java.math.BigDecimal;
import com.bwda.dsrs.base.util.DateUtil;
import org.springframework.format.annotation.DateTimeFormat;
import java.util.Date;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
/**
 * @description:文件更新form
 * @author: yangjun
 * @create: 2019-04-28 11:15
 */
@Data
@ApiModel(description = "文件信息表")
public class FileInfoUpdateForm {

	@ApiModelProperty(value = "文件ID", required = true)
	@NotNull(message = "文件ID不能为空")
	private Integer id;

	@ApiModelProperty(value = "文件唯一编号，服务器存储文件名")
	private String fileCode;

	@ApiModelProperty(value = "用户编码")
	private String userCode;

	@ApiModelProperty(value = "文件名称，全称aa.doc")
	private String fileName;

	@ApiModelProperty(value = "文件大小")
	private BigDecimal fileSize;

	@ApiModelProperty(value = "文件类型，后缀，如word,ppt")
	private String fileSuffix;

	@ApiModelProperty(value = "0未扫描，1扫描中，2已扫描")
	private Integer scanState;

	@ApiModelProperty(value = "敏感等级")
	private Integer secretLevel;

	@ApiModelProperty(value = "0个人文件1流转接受文件99其他")
	private String fileSource;

	@ApiModelProperty(value = "文件来自他人")
	private Long originFileId;

	@ApiModelProperty(value = "文件存放FTP的ID")
	private String ftpId;

	@ApiModelProperty(value = "相对路径")
	private String filePath;

	@ApiModelProperty(value = "文件标签1常用")
	private String fileTag;

	@ApiModelProperty(value = "备注")
	private String remark;

	@ApiModelProperty(value = "创建人")
	private String createUserCode;

	@ApiModelProperty(value = "创建时间,格式为:" + DateUtil.FORMAT)
	@DateTimeFormat(pattern = DateUtil.FORMAT)
	private Date createTime;

	@ApiModelProperty(value = "更新人")
	private String updateUserCode;

	@ApiModelProperty(value = "更新时间,格式为:" + DateUtil.FORMAT)
	@DateTimeFormat(pattern = DateUtil.FORMAT)
	private Date updateTime;

	@ApiModelProperty(value = "0未删除 1已删除")
	private Integer delFlag;

	@ApiModelProperty(value = "文件状态0正常1编辑")
	private Integer fileState;

	@ApiModelProperty(value = "目录ID")
	private Integer parentId;

	@ApiModelProperty(value = "所有父目录ID")
	private String parentIds;

}